package packets.c2spackets;

import network.MCConnection;
import exceptions.UnrecoverableException;
import packets.PacketHandler;
import world.WorldState;


/**
 * Holding change: The player has changed it slot selection.
 *
 */
public class P0x10 extends PacketHandler {

	public P0x10(WorldState worldstate) {
		super(worldstate);
	}

	@Override
	public void handle(MCConnection conn) throws UnrecoverableException {
		short slotid = conn.r.readShort();
		conn.getPlayer().setSelectedSlot(slotid);
	}

}
